package com.wanlian.service;

import com.wanlian.entity.UserAuthority;
import com.wanlian.model.PageResult;
import com.wanlian.vo.Page;
import com.wanlian.vo.UserAuthorityVo;

import java.util.List;

public interface UserAuthorityServices
{
    void add(UserAuthority userAuthority);

    void doedit(UserAuthority userAuthority);

    void delete(int id);

    void deleteByUserId(int userId);

    UserAuthority getUserAuthority(int id);

    List<UserAuthority> queryUserAuthority(int userid);

    UserAuthority getIsExistUserAuthority(int userid, int authorityid);

    PageResult queryPageList(UserAuthority userAuthority, Page page);

    List<UserAuthority> queryByAuthorityid(int authorityid);

    List<UserAuthorityVo> queryUserAuthorityVo(int userid);
}
